package behavior.state;

/**
 * @author dali
 * @date 2021-07-28 15:20
 * @Description
 */

public class Blocked extends State {
    public Blocked() {
        System.out.println("当前线程处于：阻塞状态");
    }
    @Override
    public void resume(Context context) {
        System.out.print("阻塞解决");
        context.setState(new Runnable());
    }
}
